/*
 * @Author: your name
 * @Date: 2021-08-02 00:32:54
 * @LastEditTime: 2021-08-02 10:40:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \aircityinit\src\api\home.js
 */
import axios from "../utils/HTTP"
import { Service, Mock } from "../utils/service" // 把请求地址模块化统一管理

export const getMockData = () => {
    return axios.get(Mock.aircity + '/test.json')
}
// 获取当前地区的pm2.5
export const getPm25 = () => {
    return axios.get('https://devapi.qweather.com/v7/air/now?location=101280601&key=4969ebd62b9646b2ac18d1009772ac57')
}


// 请求接口示例
export const getApiData = () => {
    return axios.get(Service.mdoel1 + '/test')
}